<template>
  <div class="home-banner">
     <Slider :sliders='list' ></Slider>
  </div>
</template>

<script>
import { ref, onMounted } from 'vue'
import { findBanner } from '@/api/home'
export default {
  name: 'HomeBanner',
  setup () {
    const list = ref([])
    async function LoadBannerList () {
      const res = await findBanner()
      list.value = res.result
    }
    onMounted(() => {
      LoadBannerList()
    })
    return { list }
  }
}
</script>

<style scoped lang='less'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
